package agriculture.client;

import agriculture.dto.StockDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "product-service") // 替换为你的商品服务名称
public interface ProductFeignClient {
    @PostMapping("/product/decreaseStock")
    boolean decreaseStock(@RequestBody StockDTO stockDTO);
}
